

<template>
<!-- style="height:90%"  -->
<div class="businessList" >
  <el-table  class="listContent" :data="goodsList" style="width: 100%;" border :height="oHeight"  header-align="center" align="center" >
    <el-table-column align="center" header-align="center" 
      prop="id"
      label="编号"
      width="100">
           </el-table-column>
    <el-table-column align="center" header-align="center" 
      prop="province"
      label="省份"
      width="100">
           </el-table-column>
    <el-table-column align="center" header-align="center" 
      prop="city"
      label="市"
      width="100">
           </el-table-column>
    <el-table-column align="center" header-align="center" 
      prop="brand_name"
      label="品牌"
      width="100">
           </el-table-column>
    <el-table-column align="center" header-align="center" 
      prop="store_id"
      label="店铺ID"
      width="100">
           </el-table-column>
            <el-table-column align="center" header-align="center" 
      prop="store_name"
      label="店铺名称"
      width="250">
           </el-table-column>
    <el-table-column align="center" header-align="center" 
      prop="pointname"
      label="公司"
      width="100">
           </el-table-column>
           <el-table-column align="center" header-align="center" 
      prop="store_end_time"
      label="到期时间"
      width="100">
           </el-table-column>
           <el-table-column align="center" header-align="center" 
      prop="usage_status_name"
      label="使用状态"
      width="100">
           </el-table-column>
      <el-table-column align="center" header-align="center" 
      prop="store_follower"
      label="督导"
      width="100">
            </el-table-column> 
    <el-table-column align="center" header-align="center" 
      prop="group_name"
      label="集团属性"
      width="100">
            </el-table-column>
    <!-- 系统服务设置 -->
    <el-table-column label="系统服务设置" align="center" header-align="center" >
     
      <el-table-column label="潜客系统" align="center" header-align="center" >
        <el-table-column align="center" header-align="center" 
        prop="if_customers"
        label="潜客系统是否维护"
        width="100">
        </el-table-column>
        <el-table-column align="center" header-align="center" 
        prop="bserd_last_time"
        label="上一次使用时间节点"
        width="100">
        </el-table-column>
      </el-table-column>
      <el-table-column label="卡券系统" align="center" header-align="center" >
         <el-table-column align="center" header-align="center" 
        prop="if_coupons"
        label="卡券系统是否发放"
        width="100">
         </el-table-column>
         <el-table-column align="center" header-align="center" 
         prop="bpcd_count_type"
        label="创建卡券种类（数量）"
        width="100">
         </el-table-column>
         <el-table-column align="center" header-align="center" 
         prop="bpcd_kqff"
        label="发放卡券数量"
        width="100">
         </el-table-column>
         <el-table-column align="center" header-align="center" 
         prop="bpcd_kqhx"
        label="核销卡券数量"
        width="100">
         </el-table-column>
         <el-table-column align="center" header-align="center" 
         prop="bpcd_last_time"
        label="上一次发放时间节点"
        width="100">
         </el-table-column>
       </el-table-column>
      <el-table-column label="营销系统" align="center" header-align="center" >
         <el-table-column
          align="center"
          prop="if_marketing"
          label="新车团购（是否）"
          width="80">
         </el-table-column>
         <el-table-column
          align="center"
          prop="if_afterSales"
          label="售后团购（是否）"
          width="80">
         </el-table-column>
         <el-table-column align="center" header-align="center" 
         prop="bbgd_last_time"
        label="上一次发放时间节点"
        width="100">
           </el-table-column> 
      </el-table-column>
      <el-table-column label="售后系统" align="center" header-align="center" >

         
        <el-table-column align="center" header-align="center" 
         prop="if_CRM"
        label="客服CRM系统使用（是否）"
        width="100">
        </el-table-column>
        <el-table-column align="center" header-align="center" 
         prop="bmrd_crm_last_time"
        label="上一次使用时间节点"
        width="100">
        </el-table-column>
        <el-table-column align="center" header-align="center" 
         prop="if_insurance"
        label="保险系统使用（是否）"
        width="100">
        </el-table-column>
        <el-table-column align="center" header-align="center" 
         prop="bmrd_baoxian_last_time"
        label="上一次保险登陆维护时间"
        width="100">
        </el-table-column>
       
        
        </el-table-column>
       </el-table-column>        
    <!-- 增值服务 -->
    <el-table-column label="增值服务" align="center" header-align="center" >
       <el-table-column label="DMP投放" align="center" header-align="center"  >
           <el-table-column align="center" header-align="center" 
         prop="if_DMP"
        label="是否使用DMP投放"
        width="100">
          </el-table-column>
          <el-table-column align="center" header-align="center" 
         prop="bdcd_amount"
        label="总投放金额"
        width="100">
          </el-table-column>
        <el-table-column align="center" header-align="center" 
         prop="bdcd_last_time"
        label="上一次投放时间"
        width="100">
         </el-table-column>
    
      </el-table-column>
      <el-table-column label="语音外呼" align="center" header-align="center" >
         <el-table-column align="center" header-align="center" 
         prop="if_voice"
        label="是否使用语音外呼"
        width="100">
         </el-table-column>
          <el-table-column align="center" header-align="center" 
         prop="ais_cj"
        label="语音外呼场景"
        width="100">
         </el-table-column>
      
          <el-table-column align="center" header-align="center" 
         prop="ais_last_time"
        label="上一次语音外呼时间"
        width="100">
         </el-table-column>
      </el-table-column>
       <el-table-column label="智慧保险" align="center" header-align="center" >
           <el-table-column align="center" header-align="center" 
         prop="if_smartInsurance"
        label="是否购买保险自动报价"
        width="100">
         </el-table-column>
           <el-table-column align="center" header-align="center" 
         prop="ib_value"
        label="购买金额"
        width="100">
         </el-table-column>
           <el-table-column align="center" header-align="center" 
         prop="ib_last_time"
        label="购买时间"
        width="100">
         </el-table-column>
       

      </el-table-column>
      <el-table-column label="系统短信" align="center" header-align="center" >
          <el-table-column align="center" header-align="center" 
         prop="if_sms"
        label="短信使用情况（是否）"
        width="100">
         </el-table-column>
           <el-table-column align="center" header-align="center" 
        prop="bsrd_business"
        label="累计短信充值金额"
        width="100">
         </el-table-column>
           <el-table-column align="center" header-align="center" 
        prop="bsrd_send"
        label="短信发送量/次"
        width="100">
         </el-table-column>
           <el-table-column align="center" header-align="center" 
        prop="if_marketing_sms"
        label="是否发放营销短信"
        width="100">
         </el-table-column>
           <el-table-column align="center" header-align="center" 
      prop="bsrd_send_last_time"
        label="上一次短信发送时间"
        width="100">
         </el-table-column>
      </el-table-column>
       <el-table-column label="会员积分" align="center" header-align="center" >
           <el-table-column
         prop="if_memberPoints"
        label="是否开始充积分"
        width="100">
         </el-table-column>
           <el-table-column align="center" header-align="center" 
         prop="bpld_last_time"
        label="上一次积分使用时间"
        width="100">
         </el-table-column>
      </el-table-column>
              </el-table-column>


  </el-table>
<!-- style="height:5%" -->
   <div class="bottom" >

     <!-- 导出 -->
       <el-button  size="mini" type="primary" class="exportButton">
            <el-link   size="mini" type="primary" style="color: #fff" :href="href">导出</el-link>
       </el-button>
           <!--分页部分-->
       <div class="paginationOne">
                    <el-pagination
                              @size-change="handleSizeChange"
                              @current-change="handleCurrentChange"
                              :current-page="searchContent.curpage"
                              :page-sizes="[10, 20, 50, 100]"
                              :page-size="searchContent.pagesize"
                              layout="total, sizes, prev, pager, next, jumper"
                              :total="total">
                    </el-pagination>
      </div>
              
          
  </div>

    
 </div>
</template>
<script>
import { resize } from "@/common/js/height.js";
import Vue from 'vue'
  export default {
  
    data() {
      return {
       
      searchContent: {
					curpage:1,
					pagesize:localStorage.getItem('pageSize')*1||10,
       
        },
        oHeight:800,
				searchObj:{},
        goodsList: [],
				total: 0,
        href:this.$store.state.location.origin + "/admin/ai/functional_statistics/index.php?act=functionalStatistics&op=statistics&form_submit=1"
   
      }
    },
    
      methods: {
      
        resetSearchData() {
		        this.searchContent={
					     curpage:1,
					     pagesize:localStorage.getItem('pageSize')*1||10,
				}
       },
          
        handleSizeChange(pagesize) {
				    localStorage.setItem('pageSize',pagesize);
		        this.searchContent.pagesize = pagesize;
		        this.searchContent.curpage = 1;
		        this.getList();
            },


	    handleCurrentChange(page) {
		       this.searchContent.curpage = page;
		        this.getList();
            },

   
    
    // 刷新列表数据
        getList() {

           var data = this.searchObj;
				data.curpage = this.searchContent.curpage;
				data.pagesize = this.searchContent.pagesize;
		        this.$http.post('/admin/ai/functional_statistics/index.php?act=functionalStatistics&op=statistics',data).then((res)=> {
			        if (res.code == 1) {
				        if (res.data && res.data.length) {
                  this.goodsList = res.data;
					       
							     console.log(this.getList) ;
						  
					        this.total = parseInt(res.show_page.TotalNum);
				        } else {
					        this.goodsList = [];
					        this.total = 0;
				        }
			        }
			        else if (res.code == 2001) {
				        this.goodsList = [];
				        this.total = 0;
			        }
			        else {
				        alert(res.msg);
			        }
		        })
       
      
     
      
     
    },
    
  },
  mounted() {
    resize(this),
   
    this.getList();
  }
  }






</script>
<style scoped lang="scss">
	.bottom{
		display: flex;
		justify-content:space-between;
		align-items: center;
	}


</style>